package top.letscode.study.apollo.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhengzhq
 * @Date: 2019-08-30 15:35
 * @Description: Redis公共配置
 */
@Configuration
public class RedisConfig {

    // 主机ip
    @Value("${redis.host}")
    private String host;

    // 端口
    @Value("${redis.port}")
    private String port;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
